<include file="Public/header" /> 

<!--主窗体-->
<div class="container app">
	<!--左侧菜单-->
	<include file="Public/sidebar" /> 
	<!--左侧菜单//-->
	
	<!-- mainCon -->
	<div id="mainCon" class="mainCon">
		<h4>页面分类列表</h4>
		<table class="table table-bordered table-hover">
			<tr>
				<th>编号</th>
				<th>申请人</th>
				<th>创建时间</th>
				<th>操作</th>
			</tr>

			<empty name="list">
				<tr><td colspan="8" style="text-align:center;color:#999">～暂无数据～</td></tr>
			<else /> 

				<foreach name="list" item="vo">
					<tr>
						<td><{$vo['id']}></td>
						<td><{$vo['mobile']}></td>
						<td><{$vo['createtime']|date="Y-m-d H:i",###}></td>
						<td>
							<a class="click" href="javascript:void(0)" data-id="<{$vo['id']}>" data-status='1'>审核通过</a>
							<a class="delAct click" href="javascript:void(0)"  data-id="<{$vo['id']}>" data-status='-1'>审核不通过</a>
						</td>
					</tr>
				</foreach>
			
			</empty>
			
		</table>
		
		<div class="pagebar">
			<{$pager}>
		</div>
		
	</div>
	<!-- mainCon// -->
	
</div>
<!--主窗体//-->

<script src="__PUBLIC__/js/layer/layer.js"></script>
<script>
$(function(){

	$(".click").click(function(){
		var that = this;
		layer.confirm('是否进行此操作', {icon: 3, title:'提示'}, function(index){
			var itemid = $(that).attr("data-id");
			var status = $(that).attr("data-status");
			$.post("<{:U('Admin/User/memberAjax')}>",{id:itemid,status:status},function(r){
				if(r.error == 1){
					layer.close(index);
					layer.alert(r.errmsg,{icon: 2});
				}else{
					window.location.reload();
				}
			});
		});
		return false;
	});
});
</script>

<include file="Public/footer" /> 